﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;

namespace YF_Music.Modules.APP_My.Models
{
  public class LrcLine : INotifyPropertyChanged
  {
    public TimeSpan Time { get; set; }
    public string Text { get; set; }

    private bool _isCurrent;
    public bool IsCurrent
    {
      get => _isCurrent;
      set
      {
        if (_isCurrent != value)
        {
          _isCurrent = value;
          PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(IsCurrent)));
        }
      }
    }
    public event PropertyChangedEventHandler PropertyChanged;
    /// <summary>
    /// 第一行歌词
    /// </summary>
    public bool IsFrist { get; set; }

    /// <summary>
    /// 第一个行外边界
    /// </summary>
    public Thickness FirstOneMargin { get; set; }
    /// <summary>
    /// 最后一行歌词
    /// </summary>
    public bool IsLast { get; set; }

    /// <summary>
    /// 最后一行的外边界
    /// </summary>
    public Thickness LastMargin { get; set; }
  }
}
